package com.yinNuo.collectWool.mobileApi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 单个羊毛(WoolTaskDetail)实体类
 *
 * @author makejava
 * @since 2021-12-12 11:12:08
 */
public class WoolTaskDetail extends Model<WoolTaskDetail> implements Serializable {
    private static final long serialVersionUID = 233825990185695590L;
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 这个任务是哪个羊毛的（关联羊毛表的id）
     */
    private Integer woolId;

    /**
     * 每个任务排序
     */
    private Integer sort;

    /**
     * 羊毛应用里的具体任务名称
     */
    private String taskName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWoolId() {
        return woolId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setWoolId(Integer woolId) {
        this.woolId = woolId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WoolTaskDetail{" +
                "id=" + id +
                ", woolId=" + woolId +
                ", sort=" + sort +
                ", taskName='" + taskName + '\'' +
                '}';
    }
}

